package zzz.jsondemo;

import com.google.gson.annotations.SerializedName;
import org.omg.CORBA.Object;

import java.util.Arrays;

/**
 * Created by 隼 on 2017/5/17.
 */
public class Diaosi {
    //定义别名
    //@SerializedName("NAME")
    private  String name;
    private  double age;
    private  String birthday;
    private  String[] major;
    private  boolean has_girlfriend;
    private Object car;
    private  Object house;
    ////transient 表示gson生成时忽略
    private  transient String ignore;

    @Override
    public String toString() {
        return "Diaosi{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", birthday='" + birthday + '\'' +
                ", major=" + Arrays.toString(major) +
                ", has_girlfriend=" + has_girlfriend +
                ", car=" + car +
                ", house=" + house +
                ", ignore='" + ignore + '\'' +
                '}';
    }

    public String getIgnore() {
        return ignore;
    }

    public void setIgnore(String ignore) {
        this.ignore = ignore;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getAge() {
        return age;
    }

    public void setAge(double age) {
        this.age = age;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String[] getMajor() {
        return major;
    }

    public void setMajor(String[] major) {
        this.major = major;
    }

    public boolean isHas_girlfriend() {
        return has_girlfriend;
    }

    public void setHas_girlfriend(boolean has_girlfriend) {
        this.has_girlfriend = has_girlfriend;
    }

    public Object getCar() {
        return car;
    }

    public void setCar(Object car) {
        this.car = car;
    }

    public Object getHouse() {
        return house;
    }

    public void setHouse(Object house) {
        this.house = house;
    }
}
